POV-Ray : Newsgroups : povray.newusers : vector data structure : vector data structure Server Time
2 Nov 2024 13:17:54 EDT (-0400)
  vector data structure  
From: bongotastic
Date: 20 Feb 2004 15:42:41
Message: <40367141@news.povray.org>
Hi,

    I assume this can be found somewhere in some documents. If you know it
from the top of your head, please let me know.

    I am trying to change one components of a vector:

#declare pt = <0,0,0>;
#declare pt = VRand_On_Sphere(MySeed);
#declare pt.z = pt.z / 2.0;

The third line does not process, saying that  a '=' is expected but a '.' is
found. The docs indicate that it should work. Am I declaring my variable pt
wrong?

Thanks for your help.

bongo


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.